﻿local addon, ns = ...
local profile = ns.profile
local differences = {}
local AddProfile = ns.default.AddProfile


profile["priest_heal"] = AddProfile("Default1", differences)
profile["priest_shadow"] = AddProfile("Default2", differences)

differences = {}
differences["bars|cdbar|pos"]  = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "UIParent", x = 3, y = -195 } 
differences["bars|cdbar|spells"] = {
		{
      	   	name = "Шок небес",
	   		addithions = false
		},
		{
      	   	name = "Святая клятва",
	   		addithions = false
		},
		{
      	   	name = "Волшебный поток",
	   		addithions = false
		},
		{
      	   	name = "Мастер аур",
	   		addithions = false
		},
		{
      	   	name = "Длань жертвенности",
	   		addithions = false
		},
		{
      	   	name = "Гнев карателя",
	   		addithions = false
		},
      }
differences["frames|player|bufs"] = {
	pos               = { a1 = "TOPLEFT", a2 = "BOTTOMLEFT", af = "self", x = -1.5 + 288.5/13 * 2, y = -1.5 },
	size		  = 288.5/13,
	space		  = 0,
	border		  = 2,
	width		  = 288.5 - 288.5/13 * 2,
	height		  = 288.5/13*(floor((32-1)/13) + 1),
	anchor		  = 'TOPLEFT',
	statusbar	  = 0,
	rewerscd	  = false,
	fontsize	  = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'DOWN',
	},
    }
profile["paladin_holy"] = AddProfile("priest_heal", differences)
differences = nil

differences = {}
differences["bars|cdbar"] = {
      buttonsize      = 22,
      statusbarsize   = 258,
      buttonspacing   = 0,
      barscale        = 1,
      bartype 	      = "STATUSBAR",
      textsize	      = 13,
      showonmouseover = false,
      userplaced      = false, --want to place the bar somewhere else?
      locked          = true, --frame locked
      pos             = { a1 = "TOPLEFT", a2 = "CENTER", af = "UIParent", x = 104, y = -373 }, 
      testmode        = false,
      spells = {	
      },
    }
differences["frames|tracking"] = {
      debufs = {
	enable		 = true,
	pos              = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "self", x = -201.5, y = 1.5 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'TOPLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'RIGHT',
	  y 		  = 'DOWN',
	},
	spells = {
	  [1]		  = "Кровавая чума",
	},
      },
      bufs = {
	enable		 = true,
	pos              = { a1 = "BOTTOMLEFT", a2 = "TOPRIGHT", af = "self", x = 1.5, y = 40 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'BOTTOMLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'UP',
	},
	spells = {
	  [1] 		   = 'Кровь вампира',
	},
      },
    }
profile["paladin_prot"] = AddProfile("priest_shadow", differences)
differences = nil

profile["paladin_retri"] = AddProfile("paladin_prot")

differences = {}
differences["bars|bar1|pos"] = { a1 = "BOTTOMLEFT", a2 = "BOTTOMLEFT", af = "UIParent", x = 51, y = 3 }
differences["bars|stancebar|sortpoint"]  = "top"
differences["bars|stancebar|pos"]  = { a1 = "BOTTOMLEFT", a2 = "BOTTOMLEFT", af = "UIParent", x = 3, y = 3 }
differences["frames|tracking|debufs|spells"] = {
	  [1]		  = "Кровавая чума",
	  [2]		  = "Озноб",
	}
differences["frames|tracking|bufs|spells"] = {
	  [1] 		   = 'Кровь вампира',
	  [2] 		   = 'Костяной щит',
	  [3] 		   = 'Антимагический панцирь',
	  [4] 		   = 'Незыблемость льда',
	  [5] 		   = 'Танцующее руническое оружие',
	  [6] 		   = 'Пылающее руническое оружие',
	}
differences["bars|cdbar|spells"] = {	
	{
      	   name = "Кровь вампира",
	   addithions = false
	},
	{
      	   name = "Незыблемость льда",
	   addithions = false
	},
	{
      	   name = "Антимагический панцирь",
	   addithions = false
	},
	{
      	   name = "Костяной щит",
	   addithions = false
	},
	{
      	   name = "Танцующее руническое оружие",
	   addithions = false
	},
	{
      	   name = "Смертельный союз",
	   addithions = false
	},
      }
profile["dk_blood"] = AddProfile("paladin_prot", differences)
differences = nil

profile["dk_damage"] = AddProfile("paladin_retri")

differences = {}
differences["frames|tracking"] = {
      debufs = {
	enable		 = true,
	pos              = { a1 = "CENTER", a2 = "TOPLEFT", af = "self", x = -101.5, y = 139 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'TOPLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		  = 'RIGHT',
	  y 		  = 'DOWN',
	},
	spells = {
	  [1]		  = "Огненный шок",
	},
      },
		bufs = {
	enable		 = true,
	pos              = { a1 = "CENTER", a2 = "TOPRIGHT", af = "self", x = -99.5, y = 100 },
	size		 = 22,
	space		 = 0,
	border		 = 2,
	width		 = 22,
	height		 = 5,
	anchor		 = 'BOTTOMLEFT',
	statusbar	 = 200,
	showtypes	 = false,
	fontsize	 = 13,
	grow = {
	  x		   = 'RIGHT',
	  y 		   = 'UP',
	},
	spells = {
	  [1] 		   = 'Высвободить чары огня',
	},
      },
    } 
profile["shaman_damage"] = AddProfile("priest_shadow", differences)
differences = nil

differences = {}
differences["frames|player|enchant"] = {
	pos               = { a1 = "TOPLEFT", a2 = 'BOTTOMLEFT', af = "self", x = -2, y = -174 },
	border		  = 2.46,
	space		  = 3,
	size		  = 41,
	rewerscd	  = false,
	grow 		  = 'RIGHT',
      }
differences["bars|cdbar|pos"]  = { a1 = "TOPLEFT", a2 = "TOPLEFT", af = "UIParent", x = 3, y = -341 }
differences["bars|cdbar|spells"] = {
	{
      	   name = "Быстрина",
	   addithions = false
	},
	{
      	   name = "Высвободить чары стихий",
	   addithions = false
	},
	{
      	   name = "Целительный ливень",
	   addithions = false
	},
	{
      	   name = "Тотем духовной связи",
	   addithions = false
	},
	{
      	   name = "Тотем прилива маны",
	   addithions = false
	},
     }
profile["shaman_restor"] = AddProfile("paladin_holy", differences)
differences = nil

differences = {}
differences["frames|slidebar"] = {
      pos               = { a1 = "CENTER", a2 = "BOTTOM", af = "UIParent", x = 0, y = 286 }, 
      iconsize    		= 30,
      barsize		    = 320,
      spells = {
		[6572] 			 = 15,
		[23922] 		 = 15,
		[46968] 		 = 15,
		[6343] 		 	 = 15,
		[118000] 	 	 = 15,
		[1719] 		 	 = 15,
		[12292]		 	 = 15,
	  },
	}
differences["frames|tracking|bufs|pos"] = { a1 = "BOTTOMLEFT", a2 = "BOTTOMRIGHT", af = "self", x = 1.5, y = 20.5 }
differences["frames|tracking|bufs|spells"] = {
	  [1] 		   = GetSpellInfo(871),
	  [2] 		   = GetSpellInfo(12975),
	  [3] 		   = GetSpellInfo(138979),
	  [4] 		   = GetSpellInfo(138728),
	}
differences["bars|cdbar|spells"] = {	
	{
      	   name = GetSpellInfo(871),
	   addithions = false
	},
	{
      	   name = GetSpellInfo(1160),
	   addithions = false
	},
	{
      	   name = GetSpellInfo(12975),
	   addithions = false
	},
	{
      	   name = "Призрачный барьер",
	   addithions = false,
	   item = 95811
	},
	{
      	   name = "Талисман непреклонности Натиска Шадо-Пан",
	   addithions = false,
	   item = 94507
	},
      }
profile["warrior_prot"] = AddProfile("dk_blood", differences)
differences = nil